Skip to content

gh-134875: Fix mimallc build error for the old compilers#134994

Merged
corona10 merged 1 commit into
python:mainfrom
corona10:gh-134875
Jun 2, 2025
Merged

gh-134875: Fix mimallc build error for the old compilers#134994
corona10 merged 1 commit into
python:mainfrom
corona10:gh-134875

Conversation

@corona10

@corona10 corona10 commented Jun 1, 2025

Copy link
Copy Markdown
Member

mi_block_t* next;
#ifdef MI_ENCODE_FREELIST
next = (mi_block_t*)mi_ptr_decode(null, mi_atomic_load_relaxed(&block->next), keys);
next = (mi_block_t*)mi_ptr_decode(null, mi_atomic_load_relaxed((_Atomic(mi_encoded_t)*)&block->next), keys);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

block is declared as const mi_block_t* block, so this issue happens. other way is to change the function signature, but I don't prefer it.

@jmroot

jmroot commented Jun 1, 2025

Copy link
Copy Markdown
Contributor

@corona10 Thank you, I can confirm that this fixes the compilation error.

@corona10

corona10 commented Jun 1, 2025

Copy link
Copy Markdown
Member Author

Let's wait @colesbury before merging this PR. Thanks for the verification.

@colesbury colesbury left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@colesbury colesbury added the needs backport to 3.14 bugs and security fixes label Jun 2, 2025
@corona10 corona10 merged commit b525e31 into python:main Jun 2, 2025
48 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2025
…ngh-134994)

(cherry picked from commit b525e31)

Co-authored-by: Donghee Na <donghee.na@python.org>
@bedevere-app

bedevere-app Bot commented Jun 2, 2025

Copy link
Copy Markdown

GH-135053 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Jun 2, 2025
@corona10 corona10 added the needs backport to 3.13 bugs and security fixes label Jun 2, 2025
@miss-islington-app

Copy link
Copy Markdown

Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 2, 2025
…ngh-134994)

(cherry picked from commit b525e31)

Co-authored-by: Donghee Na <donghee.na@python.org>
@bedevere-app

bedevere-app Bot commented Jun 2, 2025

Copy link
Copy Markdown

GH-135054 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Jun 2, 2025
@corona10 corona10 deleted the gh-134875 branch June 2, 2025 23:42
corona10 added a commit that referenced this pull request Jun 3, 2025
…34994) (gh-135053)

gh-134875: Fix mimallc build error for the old compilers (gh-134994)
(cherry picked from commit b525e31)

Co-authored-by: Donghee Na <donghee.na@python.org>
corona10 added a commit that referenced this pull request Jun 3, 2025
…34994) (gh-135054)

gh-134875: Fix mimallc build error for the old compilers (gh-134994)
(cherry picked from commit b525e31)

Co-authored-by: Donghee Na <donghee.na@python.org>
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
Agent-Hellboy pushed a commit to Agent-Hellboy/cpython that referenced this pull request Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants